package com.shopnight.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shopnight.entity.ShopIndent;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shopnight.result.ApiResult;
import com.shopnight.utils.PageUtils;
import com.shopnight.vo.AddIndentVo;

import java.io.IOException;
import java.security.GeneralSecurityException;
import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * @author 13201
 * @description 针对表【shop_indent】的数据库操作Service
 * @createDate 2022-09-09 15:03:49
 */
public interface ShopIndentService extends IService<ShopIndent> {

    ApiResult addIndent(AddIndentVo addIndentVo) throws Exception;

    IPage getUserOrderList (Map<String,String> map);

    ApiResult getUserOrderStatusNumber();

    ApiResult getIndentInfo(Map<String, Long> map);

    ApiResult UpdateIndent(ShopIndent shopIndent) throws IOException;


    void processOrder(String plainTextMap) throws GeneralSecurityException;

    ApiResult queryPage(Map<String, Object> params) throws ExecutionException, InterruptedException;
}